var imgs = document.getElementsByTagName('img')
for (var index = 0; index < imgs.length; index++) {
    imgs[index].style.width = '100%';
}
